<+b_dialog dialog_title="Gradient" dw=960  dialog_bar=0 dialog_space=0 dialog_nogroup=1>
<assign bw=400>
<assign sbwidth=190>
<assign colorWidth=#dw-234>

<table>
<tr>
	<td width=216 bgcolor=#colorGroupBox>
		<img height=#ds><br>
		<img width=#ds>
		<select name=category width=200 height=#dbh></select><br>
		<img width=216 height=1 bgcolor=#colorFrame><br>
		<img height=1 width=216 bgcolor=#colorList><br>
		<img width=8 height=398 bgcolor=#colorList>
		<input type=listbox name=gradientList ownerdraw=1 singlesel=1 width=208 height=398>	
		<img width=216 height=1 bgcolor=#colorFrame><br>
		<table cellpadding=#ds>
		<tr>
			<td width=216 bgcolor=#colorToolbar>
				<center>
				<input type=button name=gradientAdd toolbar=1 width=60 height=20 xpar=images/button_add_wide.png  grayxpar=images/button_add_wide.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorToolbarIconGrey bgcolor=#colorToolbar nofade=1 alt="Add" ascent=20>
				<input type=button name=gradientDel toolbar=1 width=60 height=20 xpar=images/button_remove.png  grayxpar=images/button_remove.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorToolbarIconGrey bgcolor=#colorToolbar nofade=1 alt="Delete" ascent=20>
				</center>
			</td>
		</tr>
		</table>

	</td>
	<td width=1 bgcolor=#colorFrame></td>
	<td width=#ds></td>
	<td bgcolor=#colorDialog>
		<img height=#ds>

		<+b_box label="Gradient" width=#colorWidth>

		<table>
		<tr>
			<td>
				<input type=custom name=preview width=432 height=243>
			</td>
			<td width=#ds></td>
			<td>
				<img height=30><br>
				<table cellspacing=#ds>
				<tr>
					<td width=#optLabelWidth align=right><img height=3><br>Gradient Type</td>
					<td><select name=gradientType width=124 height=22></select><br><img height=12></td>
				</tr>
				<tr>
					<td align=right><img height=2><br>Resolution</td>
					<td>
						<input type=text name=resX width=50 value="800" ascent=20>
						<img src=#textX>
						<input type=text name=resY width=50 value="600" ascent=20>
						<img src=#textPX>

					</td>
					<td><+reset name=resolutionReset alt="Reset resolution"></td>
				</tr>
				</table>
				<img height=12>				
				<table cellspacing=#ds>
				<tr>
					<td width=#optLabelWidth align=right><img height=3><br>Position</td>
					<td>
						<input type=textbox name=posXScroll width=50 height=20 sliderWidth=200 sliderMin=0 sliderMax=100 sliderMinLimit=0 sliderMaxLimit=100 sliderFormat="%1.0f" sliderScale=10 alt="Adjust position" ascent=20>
						<img src=#textX>
						<input type=textbox name=posYScroll width=50 height=20 sliderWidth=200 sliderMin=0 sliderMax=100 sliderMinLimit=0 sliderMaxLimit=100 sliderFormat="%1.0f" sliderScale=10 alt="Adjust position" ascent=20>
						<img src=#textPercent>
					</td>
					<td><+reset name=posXReset alt="Reset angle"></td>
				</tr>
				</table>
				<table cellspacing=#ds>
				<tr>
					<td width=#optLabelWidth align=right><img height=2><br>Angle</td>
					<td>
						<input type=textbox name=angleScroll width=50 height=20 sliderWidth=200 sliderMin=0 sliderMax=360 sliderMinLimit=0 sliderMaxLimit=360 sliderFormat="%1.0f" sliderScale=10 alt="Adjust angle" ascent=20>
						<img src=#textDegree>
					</td>
					<td><+reset name=angleReset alt="Reset angle"></td>
				</tr>
				</table>
				<img height=12>				
				<table cellspacing=#ds>
				<tr>
					<td width=#optLabelWidth align=right><img height=2><br>Seed</td>
					<td>
						<input type=button height=20 name=randomizeSeed value="Random" alt="Generate Random Seed" width=62>
					</td>
					<td>
						<input type=text name=seed width=40 value="0" ascent=20>
						<img src=#textNumber>
					</td>
					<td>
						<+reset name=seedReset alt="Reset seed" resetAscent=1>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		<+e_box>
		<img height=#ds>
		
		<+b_box width=#colorWidth label="Colors">
			<center>
			<table cellspacing=#ds>
			<tr>
				<td align=right width=60 ><img height=2><br>Color</td>
				<td><input type=color name=gradientColor></td>
				<td width=60 align=right><img height=2><br>Opacity</td>
				<td>
					<input type=textbox name=opacityScroll width=40 height=20 sliderWidth=200 sliderMin=0 sliderMax=100 sliderMinLimit=0 sliderMaxLimit=100 sliderFormat="%1.0f" sliderScale=2.55 alt="Adjust color\ntransparency" ascent=20>
					<img src=#textPercent><img width=#ds>
					<+reset name=opacityReset alt="Reset transparency" resetAscent=1>
				</td>
				<td width=60 align=right><img height=2><br>Position</td>
				<td><input type=text name=location width=40 value="0.0" ascent=20><img src=#textPercent></td>
				<td width=80 align=right><img height=2><br>Colorspace</td>
				<td><select name=colorSpace width=100 height=#dbh></td>
			</tr>
			</table>
			<img height=#ds><br>
			<img width=#colorWidth height=1 bgcolor=#colorFrame><br>
			<img height=#ds>

			</center>
			<table>
			<tr>
				<td bgcolor=#colorGroupBox width=10></td>
				<td bgcolor=#colorGroupBox>
					<input type=custom name=colorRange width=#colorWidth-30 height=50><br>
				</td>
				<td bgcolor=#colorGroupBox width=10></td>
			</tr>
			</table>
			<center>
				<img width=100 height=20 bgcolor=#colorDialogText save=addFill>
				<img width=100 height=20 bgcolor=#colorDialog save=addGreyFill>
				<img src=#addGreyFill i_rectcolor=#colorDialogText i_opacity=64 i_recttop=0 save=addGreyFill>
				<input type=button name=colorAdd toolbar=1 width=100 height=20 xpar=images/button_add_color.png grayxpar=images/button_add_color.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorGroupIconGrey bgcolor=#colorGroupBox nofade=1 alt="Add a new color marker" ascent=20>
				<img width=#ds>
				<input type=button name=colorDel toolbar=1 width=60 height=20 xpar=images/button_remove.png grayxpar=images/button_remove.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorGroupIconGrey bgcolor=#colorGroupBox nofade=1 alt="Remove selected color marker" ascent=20>
				<img width=#ds>
				<input type=button name=reverse toolbar=1 width=60 height=20 xpar=images/button_reverse.png grayxpar=images/button_reverse.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorGroupIconGrey bgcolor=#colorGroupBox nofade=1 alt="Reverse colors" ascent=20>
			</center>
		<+e_box>
		<img height=#ds>
	</td>
</tr>
</table>


<+d_dialog>
	<table>
	<tr>
		<td width=300>
			<img height=6><br>
			<input type=label name=previewTip width=300 height=16>
		</td>
		<td align=right width=#dw-300-#dws-#dws>
			<input type=button name=ok value="Ok" width=#dbw height=#dbh bgcolor=#colorSelection textcolor=#colorSelectionText>
			<img width=#ds>
			<input type=button name=cancel value="Cancel" width=#dbw height=#dbh>
		</td>
	</tr>
	</table>
<+e_dialog>	
				
